package com.wyc.serviceMap.controller;

import com.wyc.internalCommon.result.ApiResult;
import com.wyc.serviceMap.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 地区字典Controller
 * 
 * @author li
 * @date 2023-03-23
 */
@RestController
public class DistrictController
{
    @Autowired
    private DistrictService districtService;

    /**
     * 初始化地区字典
     * @return
     */
    @GetMapping("/dic-district/{keywords}")
    public ApiResult initDistrict(@PathVariable("keywords") String keyWords){
        return districtService.initDistrict(keyWords);
    }

}
